<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\SamplePatient */
/* @var $form yii\widgets\ActiveForm */

$this->title = ($model->isNewRecord ? '创建' : '更新').'直接送测序公司';
// $this->registerJsFile('@web/js/use.js', ['depends' => 'app\assets\AppAsset']);
?>

<div class="sample-patient-form myForm">

    <div class="alert alert-danger" id="error-msg"></div>

    <?php $form = ActiveForm::begin(['id' => 'UseForm']); ?>

    <?= $form->field($model, 'tube_deliver')->textInput()->error(false) ?>

    <?= $form->field($model, 'deliver_comp')->textInput()->error(false) ?>

    <?= $form->field($model, 'deliver_using')->textInput(['maxlength' => true])->error(false) ?>
    
    <?= $form->field($model, 'deliver_time')->textInput(['class'=>'form-control laydate-icon date'])->error(false) ?>

    <br /><br />

    <input type="hidden" id="status" value="<?= $model->isNewRecord ? 'create' : 'update/'.$model->pk_id ?>">
    <input type="hidden" name="sample_type" value="1">
    <div class="form-group">
        <?= Html::Button($model->isNewRecord ? '保存' : '更新', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary', 'id' => 'submitButton']) ?>

        <?= Html::a('取消', ['/sample/view-using', 'type' => 1], ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
